<template>
	<view class="user">
		<!--头部-->
		<view class="user-section">
			<image class="bg" src="http://mudanh5.bxwhl.com/userbg/user-bg.png" mode="aspectFill" v-if="jieri==0"></image>
			<image class="bg" src="http://mudanh5.bxwhl.com/userbg/user-bg.png" mode="widthFix" v-else style="filter: blur(0px); opacity: 1; "></image>
			<!--用户信息-->
			<view class="user-info-box" @tap="navTo(userInfo ? '/pages/user/userinfo/userinfo' : 'login')">
				<view class="portrait-box">
					<image class="portrait" :src="(userInfo && userInfo.head_portrait	) || user_info.headimgurl || '/static/missing-face.png'"></image>
					<view>
						<text class="username">
							{{ userInfo && ( userInfo.realname) || userInfo.username ||'请先登录'}}
						</text>
						<view class="username" style="font-size: 28upx" v-if="userInfo.node_level==2">
							超级节点
						</view>
						<view class="username" style="font-size: 28upx" v-else-if="userInfo.star_level==1">
							运营节点一星用户
						</view>
						<view class="username" style="font-size: 28upx" v-else-if="userInfo.star_level==2">
							运营节点二星用户
						</view>
						<view class="username" style="font-size: 28upx" v-else-if="userInfo.star_level==3">
							运营节点三星用户
						</view>
						<view class="username" style="font-size: 28upx" v-else-if="userInfo.star_level==0 && userInfo.node_level==0">
							普通用户
						</view>
					</view>
					<view class="sign-box" @click.stop="sign">
						<text>签到</text>
						<image src="/static/mdl-img/sign-img.png" class="sign-img"></image>
					</view>
				</view>
			</view>
			<!--vip信息-->
			<view class="vip-card-box" v-if="jieri==0">
				<image class="card-bg" src="/static/vip-card-bg.png" mode=""></image>
				<!--<view class="b-btn">-->
				<!--立即开通-->
				<!--</view>-->
				<view class="tit">
					<i class="iconfont iconiLinkapp-" />
					欢迎来到牡丹商城
				</view>
				<text class="e-m" style="position: relative;">天健网络科技有限公司版权所有</text>
			</view>
		</view>
		<view class="cover-container" :style="[{
				transform: coverTransform,
				transition: coverTransition
			}]" :class="jieri!=0?'jieri-class':''"
		 @touchstart="coverTouchstart" @touchmove="coverTouchmove" @touchend="coverTouchend">
			<image class="arc" src="/static/arc.png"></image>
			<!--余额 优惠券 积分信息-->
			<view class="promotion-center">
				<!--				<list-cell icon="/static/my-img/order.png" iconColor="#e07472" @eventClick="directTo('/pages/user/account/account')" title="我的账户"></list-cell>-->
				<view class="tj-sction">
					<view class="tj-item" v-for="item in amountList" :key="item.title" @tap="navTo(item.url)">
						<image class="amount-img" :src="item.imgUrl" mode="widthFix" />
						<text>{{ item.title }}</text>
						<text class="num red">
							{{ item.value }}
						</text>
					</view>
				</view>
			</view>
			<!-- 我的广告 -->
			<!-- 测试123 -->
			<view class="ad-view">
				<ad adpid="1284386373" @load="adLoad"></ad>
			</view>
			<!-- 订单类型 -->
			<view class="promotion-center">
				<list-cell icon="/static/my-img/order.png" iconColor="#e07472" @eventClick="directTo(`/pages/order/order?state=-1`)"
				 title="我的订单"></list-cell>
				<view class="order-section">
					<view class="order-item" v-for="item in orderSectionList" :key="item.title" @tap="navTo(item.url)" hover-class="common-hover"
					 :hover-stay-time="50">
						<image class="iconfont" :src="item.icon" mode="widthFix" style="width: 30px;margin: 4px 0px;" />
						<text>{{ item.title }}</text>
						<rf-badge type="error" size="small" class="badge" v-if="item.num !=0" :text="item.num"></rf-badge>
						<!--						<rf-badge type="error" size="small" class="badge" :text="item.num"></rf-badge>-->
					</view>
				</view>
			</view>

			<!-- 浏览历史 -->
			<view class="history-section" v-if="false">
				<list-cell icon="/static/my-img/footprint.png" iconColor="#5eba8f" @eventClick="directTo('/pages/user/footprint/footprint')"
				 title="我的足迹"></list-cell>
				<view v-if="token">
					<scroll-view scroll-x class="h-list" v-if="footList.length > 0">
						<view class="h-item" v-for="item in footList" :key="item.id">
							<image class="h-item-img" @tap.stop="navTo(`/pages/product/product?id=${item.product.id}`)" :src="item.product.picture"
							 mode="aspectFill">
							</image>
							<text class="in1line">{{ item.product.name }}</text>
						</view>
					</scroll-view>
					<view class="no-foot-print" v-else-if="footList.length === 0" @tap="navTo('/pages/product/list')">
						<i class="iconfont iconshare no-foot-print-icon" />
						先去浏览一些吧~
					</view>
				</view>
				<view class="no-foot-print" v-else @tap="navTo('/pages/user/footprint/footprint')">
					<image class="iconfont" src="/static/my-img/login.png" mode="widthFix" style="width: 36upx;margin: 0px 2px;vertical-align: text-bottom;" />
					登陆后查看
				</view>
			</view>

			<!--我的推广-->
			<view class="promotion-center">
				<list-cell icon="/static/mdl-img/myPromotion.png" title="我的推广" navigateType="none"></list-cell>
				<view class="tj-sction">
					<!-- 分类列表 -->
					<view class="category-list">
						<view class="category" v-for="(item, index) in myPromotion" :key="index" @tap.stop="navTo(item.url)">
							<view>
								<view class="img">
									<image class="iconfont" :src="item.icon" mode="widthFix" style="width: 80upx;margin-bottom: 10px;"></image>
								</view>
								<view class="text">{{ item.title }}</view>
							</view>
						</view>
					</view>
				</view>
			</view>

			<!--我的资料-->
			<view class="promotion-center">
				<list-cell icon="/static/mdl-img/myProfile.png" iconColor="#e07472" title="我的资料" navigateType="none"></list-cell>
				<view class="tj-sction">
					<!-- 分类列表 -->
					<view class="category-list" v-if="true">
						<view class="category" v-for="(item, index) in settingList" :key="index" @tap.stop="navTo(item.url)">
							<view v-if="item.title!=='分享' && item.title!=='退出'">
								<view class="img">
									<image class="iconfont" :src="item.icon" mode="widthFix" style="width: 80upx;margin-bottom: 10px;"></image>
								</view>
								<view class="text">{{ item.title }}</view>
							</view>
							<button class="share-btn" @tap.tap="share" v-else-if="item.title=='分享'">
								<view class="img">
									<image class="iconfont" :src="item.icon" mode="widthFix" style="width: 80upx;margin-bottom: 10px;"></image>
								</view>
								<view class="text">{{ item.title }}</view>
							</button>
							<button class="share-btn" @tap.tap="toLogout" v-else-if="item.title=='退出'">
								<view class="img">
									<image class="iconfont" :src="item.icon" mode="widthFix" style="width: 80upx;margin-bottom: 10px;"></image>
								</view>
								<view class="text">{{ item.title }}</view>
							</button>
						</view>
					</view>
				</view>
			</view>

		</view>
		<!-- 签到弹窗 -->
		<view class="signIn" v-if="signIn">
			<view class="signIn-box" v-if="signInType==1">
				<image src="../../static/signIn-img.png" mode="widthFix" class="signIn-img"></image>
				<view class="success">
					签到成功
				</view>
				<view class="signIn-time">
					今日已获得 <text>5 贡献值</text>
				</view>
				<view class="signIn-hint" @click="closeSignIn">
					确认
				</view>
				<image src="../../static/close-signIn-img.png" mode="widthFix" class="close-signIn-img" @click="closeSignIn"></image>
			</view>
			<view class="signIn-box" v-else>
				<image src="../../static/signIn-img.png" mode="widthFix" class="signIn-img"></image>
				<view class="success">
					今日已签到
				</view>
				<view class="signIn-time">
					明日签到可获得 <text>5 贡献值</text>
				</view>
				<view class="signIn-hint" @click="closeSignIn">
					好的
				</view>
				<image src="../../static/close-signIn-img.png" mode="widthFix" class="close-signIn-img" @click="closeSignIn"></image>
			</view>
		</view>
		<!--页面加载动画-->
		<rf-loading v-if="loading"></rf-loading>
		<view class="share-box" v-if="showShare" @click="showShare=!showShare">
			<image class="share" src="../../static/my-img/share.png" mode="widthFix" @click.stop=""></image>
		</view>
	</view>
</template>
<script>
	import {
		footPrintList,
		memberInfo
	} from '@/api/userInfo';
	import {
		cartItemCount,
		getMdl,
		memberSign,
		getAdReward
	} from "@/api/product";
	import listCell from '@/components/rf-list-cell';
	import {
		mapMutations
	} from 'vuex';
	import rfBadge from '@/components/rf-badge/rf-badge'
	import {
		logout
	} from "@/api/login";
	let startY = 0,
		moveY = 0,
		pageAtTop = true;
	export default {
		components: {
			listCell,
			rfBadge
		},
		data() {
			return {
				signIn: false,
				signInType: 1,
				jieri: '',
				myPromotion: [{
						icon: '/static/my-img/my-item.png',
						url: '/pages/user/mdl/myTeam',
						title: '我的团队'
					},
					{
						icon: '/static/my-img/popularize-money.png',
						url: '/pages/user/mdl/availableMdl?type=2',
						title: '推广收益'
					},
					{
						icon: '/static/my-img/my-popularize.png',
						url: '/pages/user/mdl/myInvitationCode',
						title: '我的推广码'
					},
					{
						icon: '/static/my-img/renwu.png',
						url: '/pages/user/renwu',
						title: '我的任务'
					},
				],
				settingList: [{
						icon: '/static/my-img/address.png',
						url: '/pages/user/address/address',
						title: '收货地址'
					},
					{
						icon: '/static/my-img/changePassword.png',
						url: '/pages/public/password?type=1',
						title: '修改密码'
					},
					{
						icon: '/static/my-img/collect.png',
						url: '/pages/user/collection/collection',
						title: '我的收藏'
					},
					// {icon: '/static/my-img/set.png', url: '/pages/set/set', title: '设置'},
					// {icon: '/static/my-img/userConter.png', url: '/pages/user/userinfo/userinfo', title: '个人资料'},
					{
						icon: '/static/my-img/withdrawal.png',
						url: '/pages/user/mdl/withdrawal?type=0',
						title: '提币'
					},
					{
						icon: '/static/my-img/goAddress.png',
						url: '/pages/user/mdl/withdrawal?type=1',
						title: '去中心地址'
					},
					{
						icon: '/static/my-img/dianpu.png',
						url: '/pages/user/storeSettled/storeSettled',
						title: '店铺入驻'
					},
					{
						icon: '/static/my-img/recharge.png',
						url: '/pages/user/mdl/exchangeRecharge',
						title: '交易所充值'
					},
					{
						icon: '/static/my-img/kefu.png',
						url: '/pages/user/vip/kefu',
						title: '客服中心'
					},

				],
				showShare: false,
				coverTransform: 'translateY(0px)',
				coverTransition: '0s',
				moving: false,
				userInfo: {
					promoter: null,
				},
				token: null,
				footList: [],
				user_info: {},
				orderSectionList: [{
						title: '待付款',
						icon: '/static/my-img/daifukuan.png',
						url: '/pages/order/order?state=0'
					},
					{
						title: '待发货',
						icon: '/static/my-img/daifahuo.png',
						url: '/pages/order/order?state=1'
					},
					{
						title: '待收货',
						icon: '/static/my-img/daishouhuo.png',
						url: '/pages/order/order?state=2'
					},
					{
						title: '评价',
						icon: '/static/my-img/daipingjia.png',
						url: '/pages/order/order?state=3'
					},
					// { title: '退款/售后', icon: '/static/my-img/shouhuo.png', url: '/pages/order/refund' },
				],
				amountList: [{
						title: '余额',
						value: 0,
						url: '/pages/user/account/account',
						imgUrl: '/static/mdl-img/overage-img.png'
					},
					{
						title: '可用贡献值',
						value: 0,
						url: '/pages/user/mdl/availableMdl?type=0',
						imgUrl: '/static/mdl-img/availableMdl.png'
					},
					{
						title: '锁仓贡献值',
						value: 0,
						url: '/pages/user/mdl/availableMdl?type=1',
						imgUrl: '/static/mdl-img/lockupMDL.png'
					}
				],
				loading: true,
			}
		},
		onShareAppMessage() {
			return {
				title: '欢迎来到RageFrame商城',
				path: `/pages/index/index`
			}
		},
		async onShow() {
			this.initData();
			this.jieri = uni.getStorageSync("jieri");
		},
		async onLoad() {
			let isAgent = uni.getStorageSync("userInfo").agent;
			if (isAgent > 0) {
				this.myPromotion.push({
					icon: '/static/my-img/my-huiyuan.png',
					url: '/pages/user/vip/vipcard',
					title: '会员中心'
				})
			}else{
				this.myPromotion.push({
					icon: '/static/my-img/buyvip.png',
					url: '/pages/user/vip/buyvip',
					title: '会员中心'
				})
			}
		},
		// #ifndef MP
		onNavigationBarButtonTap(e) {
			const index = e.index;
			if (index === 0) {
				this.navTo('/pages/set/set');
			} else if (index === 1) {
				// #ifdef APP-PLUS
				const pages = getCurrentPages();
				const page = pages[pages.length - 1];
				const currentWebview = page.$getAppWebview();
				currentWebview.hideTitleNViewButtonRedDot({
					index
				});
				// #endif
				uni.navigateTo({
					url: '/pages/index/notice/notice'
				})
			}
		},
		// #endif
		methods: {
			adLoad(e) {
				this.adhttp("1284386373")
				console.log(e)
				// this.token = uni.getStorageSync('accessToken') || undefined;
				// if (this.token) {
				// 	this.$post(`${getAdReward}`, {
				// 		ad_type: 'ad_user',
				// 		ad_id: e.target.id,
				// 		ad_open_id: '1284386373'
				// 	}).then(r => {
				// 		console.log(r)
				// 	}).catch((err) => {
				// 		console.log(err)
				// 	});
				// }
			},
			sign() {
				if (!this.token) {
					let url = '/pages/public/login';
					uni.showModal({
						content: '你暂未登陆，是否跳转登录页面？',
						success: (confirmRes) => {
							if (confirmRes.confirm) {
								uni.navigateTo({
									url
								});
							}
						},
					})
				} else {
					this.$get(`${memberSign}`, {}).then(async r => {
						if (r.data.sign_status == 2) {
							this.signInType = 2
						} else {
							this.signInType = 1
						}
						this.signIn = true;
					}).catch(err => {
						this.loading = false;
						console.log(err);
					})
				}

			},
			closeSignIn() {
				this.signIn = false;
			},
			shareToH5() {
				// #ifdef H5
				this.$api.msg('请复制连接进行分享');
				// #endif
			},
			...mapMutations(['login', 'logout']),
			/**
			 *@des 分享
			 *@author stav stavyan@qq.com
			 *@blog https://stavtop.club
			 *@date 2019/11/25 15:53:35
			 */
			share() {
				this.showShare = !this.showShare;
			},
			toLogout() {
				uni.showModal({
					content: '确定要退出登录么',
					success: (e) => {
						if (e.confirm) {
							this.$post(`${logout}`).then(r => {
								this.logout();
								uni.reLaunch({
									url: '/pages/user/user'
								})
							})
						}
					}
				});
			},
			// 数据初始化
			async initData() {
				this.userInfo = uni.getStorageSync('userInfo') || {};
				this.token = uni.getStorageSync('accessToken') || undefined;
				if (this.token) {
					await this.getMemberInfo();
					if (uni.getStorageSync('cartNum')) {
						if (uni.getStorageSync('cartNum') != 0) {
							uni.setTabBarBadge({
								index: 3,
								text: uni.getStorageSync('cartNum').toString(),
							});
						} else {
							uni.removeTabBarBadge({
								index: 3
							});
						}
					} else {
						uni.removeTabBarBadge({
							index: 3
						});
					}
				} else {
					this.loading = false;
					uni.removeTabBarBadge({
						index: 3
					});
					this.amountList[0].value = 0;
					this.amountList[1].value = 0;
					this.amountList[2].value = 0;
				}
			},
			// 获取用户信息
			async getMemberInfo() {
				this.loading = true;
				this.$get(memberInfo).then(r => {
					this.loading = false;
					this.userInfo = r.data || undefined;
					const orderSynthesizeNumArr = [];
					for (let item in r.data.order_synthesize_num) {
						orderSynthesizeNumArr.push(r.data.order_synthesize_num[item])
					}
					for (let i = 0; i < this.orderSectionList.length; i++) {
						this.orderSectionList[i].num = orderSynthesizeNumArr[i].toString();
					}
					this.amountList[0].value = r.data.account.user_money || 0;

					this.getFootPrintList();
					this.$get(`${cartItemCount}`).then(r => {
						if (r.data == 0) {
							uni.removeTabBarBadge({
								index: 3
							});
						} else {
							uni.setStorageSync('cartNum', r.data);
							uni.setTabBarBadge({
								index: 3,
								text: r.data,
							});
						}
					});
					uni.setStorage({
						key: 'userInfo',
						data: r.data
					})
				}).catch(() => {
					this.loading = false;
				});

				this.$get(`${getMdl}`, {}).then(async r => {
					this.amountList[1].value = r.data.user_integral || 0;
					this.amountList[2].value = r.data.lock_integral || 0;
					uni.setStorageSync('user_integral', r.data.user_integral);
				}).catch(err => {

					console.log(err);
				})
			},
			// 获取足迹列表
			async getFootPrintList() {
				await this.$get(`${footPrintList}`).then(r => {
					this.footList = r.data
				});
			},
			// 统一跳转接口,拦截未登录路由
			navTo(url) {
				if (!url) {
					return;
				}
				if (!this.token) {
					url = '/pages/public/login';
					uni.showModal({
						content: '你暂未登陆，是否跳转登录页面？',
						success: (confirmRes) => {
							if (confirmRes.confirm) {
								uni.navigateTo({
									url
								});
							}
						}
					});
				} else {
					if(url=='/pages/user/vip/vipcard'){
						if(this.userInfo.agent==1){
							uni.navigateTo({
								url:"/pages/user/vip/vipServer"
							})
						}else{
							uni.navigateTo({
								url
							})
						}
					}else{
						uni.navigateTo({
							url
						})
					}
					
				}
			},
			directTo(url) {
				uni.navigateTo({
					url
				})
			},
			/**
			 *  会员卡下拉和回弹
			 *  1.关闭bounce避免ios端下拉冲突
			 *  2.由于touchmove事件的缺陷（以前做小程序就遇到，比如20跳到40，h5反而好很多），下拉的时候会有掉帧的感觉
			 *    transition设置0.1秒延迟，让css来过渡这段空窗期
			 *  3.回弹效果可修改曲线值来调整效果，推荐一个好用的bezier生成工具 http://cubic-bezier.com/
			 */
			coverTouchstart(e) {
				if (pageAtTop === false) {
					return;
				}
				this.coverTransition = 'transform .1s linear';
				startY = e.touches[0].clientY;
			},
			coverTouchmove(e) {
				moveY = e.touches[0].clientY;
				let moveDistance = moveY - startY;
				if (moveDistance < 0) {
					this.moving = false;
					return;
				}
				this.moving = true;
				if (moveDistance >= 80 && moveDistance < 100) {
					moveDistance = 80;
				}
				if (moveDistance > 0 && moveDistance <= 80) {
					this.coverTransform = `translateY(${moveDistance}px)`;
				}
			},
			coverTouchend() {
				if (this.moving === false) {
					return;
				}
				this.moving = false;
				this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
				this.coverTransform = 'translateY(0px)';
			}
		}
	}
</script>
<style lang='scss' scoped>
	.iconfont {
		width: 48rpx !important;
		height: 48rpx !important;
	}

	page {
		background-color: $page-color-base;
	}

	.user {
		.user-section {
			background-color: $page-color-base;
			height: 520upx;
			padding: 100upx 30upx 0;
			position: relative;

			.bg {
				position: absolute;
				left: 0;
				top: 0;
				width: 100%;
				height: 100%;
				filter: blur(1px);
				opacity: .7;
			}

			.user-info-box {
				height: 180upx;
				display: flex;
				align-items: center;
				position: relative;
				z-index: 1;

				//justify-content: space-between;
				.portrait-box {
					display: flex;
					align-items: center;

					.portrait {
						width: 130upx;
						height: 130upx;
						border: 5upx solid #fff;
						border-radius: 50%;
					}

					.username {
						font-size: $font-lg + 4upx;
						color: #ffffff;
						margin-left: 20upx;
						font-weight: 500;
					}

					button {
						background-color: transparent;
						font-size: $font-lg + 6upx;
						color: $font-color-dark;
						border: none;
					}

					button::after {
						border: none;
					}
				}
			}

			.vip-card-box {
				display: flex;
				flex-direction: column;
				color: #f7d680;
				height: 240upx;
				background: linear-gradient(to left, rgba(0, 0, 0, .7), rgba(0, 0, 0, .8));
				border-radius: 16upx 16upx 0 0;
				overflow: hidden;
				position: relative;
				padding: 20upx 24upx;

				.card-bg {
					position: absolute;
					top: 20upx;
					right: 0;
					width: 164px;
					height: 133px;
				}

				.b-btn {
					position: absolute;
					right: 20upx;
					top: 16upx;
					width: 132upx;
					height: 40upx;
					text-align: center;
					line-height: 40upx;
					font-size: 22upx;
					color: #36343c;
					border-radius: 20px;
					background: linear-gradient(to left, #f9e6af, #ffd465);
					z-index: 1;
				}

				.tit {
					font-size: $font-base+2upx;
					color: #f7d680;
					margin-bottom: 28upx;

					.iconfont {
						color: #f6e5a3;
						display: inline-block;
						margin-right: 16upx;
					}
				}

				.e-b {
					font-size: $font-sm;
					color: #d8cba9;
					margin-top: 10upx;
				}
			}
		}

		.cover-container {
			margin-top: -150upx;
			padding: 0 30upx 20upx;
			position: relative;
			background-color: $page-color-base;

			.arc {
				position: absolute;
				left: 0;
				top: -34upx;
				width: 100%;
				height: 36upx;
			}

			.promotion-center {
				background: #fff;
				margin: 20upx 0;

				/*分类列表*/
				.category-list {
					width: 100%;
					padding: 0 0 30upx 0;
					border-bottom: solid 2upx #f6f6f6;
					display: flex;
					flex-wrap: wrap;

					.category {
						width: 25%;
						margin-top: 50upx;
						display: flex;
						justify-content: center;
						flex-wrap: wrap;

						.img {
							width: 100%;
							display: flex;
							justify-content: center;

							.iconfont {
								font-size: $font-lg + 24upx;
								width: 48rpx;
								height: 48rpx;
							}
						}

						.text {
							width: 100%;
							display: flex;
							justify-content: center;
							font-size: 24upx;
							color: #3c3c3c;
						}

						.share-btn {
							height: 142upx;
							text-align: left;
							background: none;
							padding: 0;
							margin: 0;
						}

						.share-btn:after {
							border: none;
							border-radius: none;
						}
					}
				}
			}

			.tj-sction {
				@extend %section;
				display: flex;

				.tj-item {
					@extend %flex-center;
					flex: 1;
					flex-direction: column;
					margin: 30upx 0;
					font-weight: bold;
					color: #303234;
					font-size: 28upx;
					font-family: PingFang SC;
					/*border-right: 2upx solid rgba(0, 0, 0, 0.2);*/
				}

				/*.tj-item:last-child {*/
				/*border-right: none;*/
				/*}*/
				.num {
					font-size: $font-base;
					color: $font-color-dark;
				}

				.red {
					color: #fd9266;
					font-weight: 700;
				}
			}

			.order-section {
				@extend %section;
				padding: 28upx 0;

				.order-item {
					@extend %flex-center;
					width: 120upx;
					height: 120upx;
					border-radius: 10upx;
					font-size: $font-sm;
					color: $font-color-dark;
					position: relative;
				}

				.badge {
					position: absolute;
					top: 0;
					right: 8upx;
				}

				.iconfont {
					font-size: 48upx;
					color: #fc9f56;
				}

				.icon-shouhoutuikuan {
					font-size: 44upx;
				}
			}

			.history-section {
				background: #fff;
				border-radius: 10upx;

				.sec-header {
					display: flex;
					align-items: center;
					font-size: $font-base;
					color: $font-color-dark;
					line-height: 40upx;

					.iconfont {
						font-size: 44upx;
						color: #5eba8f;
						margin-right: 16upx;
						line-height: 40upx;
					}

					.content {
						flex: 1;
					}

					.iconyou {
						font-size: $font-base + 2upx;
						color: $font-color-base;
						margin-left: $uni-spacing-row-sm;
					}
				}

				.h-list {
					white-space: nowrap;
					padding: 30upx 30upx 0;

					.h-item {
						display: inline-block;
						font-size: $font-sm;
						color: $font-color-base;
						width: 160upx;
						height: 160upx;
						margin-right: 20upx;
						border-radius: 10upx;
						text-align: center;

						.h-item-img {
							width: 100%;
							height: 100%;
						}
					}

					image {}
				}

				.no-foot-print {
					text-align: center;
					padding: 48upx 0;

					.no-foot-print-icon {
						color: $base-color;
						font-size: $font-lg + 2upx;
						margin-right: 10upx;
					}
				}

				.share-btn {
					height: 102upx;
					text-align: left;
					background: none;
					padding: 0;
					margin: 0;
				}

				.share-btn:after {
					border: none;
					border-radius: none;
				}
			}
		}
	}

	%flex-center {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	%section {
		justify-content: space-around;
		display: flex;
		align-content: center;
		background: #fff;
		border-radius: 10upx;
	}

	.uni-badge--error {
		color: #fff;
		background-color: #ff6216;
	}

	.share-box {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		z-index: 1000;
		background: rgba(0, 0, 0, 0.5);

		.share {
			width: 75%;
			position: absolute;
			left: 50%;
			top: 47%;
			transform: translate(-50%, -50%);
		}
	}

	.amount-img {
		width: 88upx;
		margin-bottom: 15upx;
	}

	.signIn-box {
		position: fixed;
		z-index: 1000;
		top: 42%;
		left: 50%;
		transform: translate(-50%, -50%);
		background: #fff;
		border-radius: 15px;
		width: 80%;
		height: 570upx;

		.signIn-img {
			width: 160upx;
			display: block;
			margin: 60upx auto 40upx;
		}

		.close-signIn-img {
			width: 80upx;
			position: absolute;
			bottom: -160upx;
			left: 50%;
			transform: translate(-50%);
		}

		.success {
			width: 100%;
			text-align: center;
			font-size: 44upx;
			font-family: Alibaba PuHuiTi;
			font-weight: 400;
			color: #222222;
		}

		.signIn-time {
			font-size: 28upx;
			font-weight: 400;
			color: #999999;
			z-index: 1;
			width: 100%;
			text-align: center;
			top: 78px;

			text {
				color: #FC9F56;
				font-size: 36upx;
				margin-left: 20upx;
			}
		}

		.signIn-hint {
			height: 68upx;
			line-height: 68upx;
			width: 317upx;
			text-align: center;
			font-size: 34upx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			background: linear-gradient(to bottom, #F48770, #FBA263);
			margin: 40upx auto 60upx;
			border-radius: 100upx;
		}
	}

	.signIn {
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1000;
		background: rgba(0, 0, 0, 0.6);
		width: 100%;
	}

	.sign-box {
		background: rgba(255, 255, 255, .75);
		padding: 4upx 16upx;
		display: flex;
		position: absolute;
		right: 0rpx;
		justify-content: center;
		align-items: center;
		border-radius: 10upx;
		font-weight: 500;

		.sign-img {
			width: 22upx;
			height: 22upx;
			margin-left: 6rpx;
		}
	}

	.jieri-class {
		margin-top: -100rpx !important;
	}
</style>
